package com.letoken.platform.repo.admin.res.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.letoken.platform.pub.enums.LetokenTokenTypeEnum;
import com.letoken.platform.pub.enums.TokenTransactionStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * @author letokenlabs
 * @date 2022/11/23$
 */
@Data
@ApiModel(value = "查询充值提现-提现记录请求返回对象", description = "查询充值提现-提现记录请求返回对象")
public class QueryAppWithdrawListRes {
    @ApiModelProperty(value = "提现id")
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "createTime", value = "提现时间", required = true, example = "1")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "资产")
    private LetokenTokenTypeEnum tokenCurrency;

    @ApiModelProperty(value = "提现数量")
    private BigDecimal amount;

    @ApiModelProperty(value = "提现手续费")
    private BigDecimal feeAmount;

    @ApiModelProperty(value = "到账数量")
    private BigDecimal realAmount;

    @ApiModelProperty(value = "类型 0平台互转 1链上提现")
    private String source;

    @ApiModelProperty(value = "接收地址/ID")
    private String address;

    @ApiModelProperty(value = "流水号")
    private String sn;

    @ApiModelProperty(value = "交易哈希")
    private String txid;

    @ApiModelProperty(value = "状态")
    private TokenTransactionStatusEnum status;

    @ApiModelProperty(value = "提现失败原因")
    private String response;

    @ApiModelProperty(value = "接收用户id")
    private String toId;


}
